<div class="box box-primary">
    <div class="box-header with-border">
        <h3 class="box-title">编辑会员</h3>
    </div>
    <!-- /.box-header -->
    <!-- form start -->
    <form class="form-horizontal">
        {{ csrf_field() }}
        <div class="box-body">
            <div class="form-group">
                <label class="col-sm-2 control-label" for="name">会员名</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="name" id="name" value="{{ $user->name }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="mobile">手机号</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="mobile" value="{{ $user->mobile }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="email">邮箱</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="email" value="{{ $user->email }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="address">住址</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="address" value="{{ $user->address }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="address">备注</label>
                <div class="col-sm-10">
                    <textarea class="form-control" name="remarks" value="{{ $user->remarks }}"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="status">用户状态</label>
                <div class="col-sm-10 radio">
                    @if($user->status == 1)
                        <label><input type="radio" name="status" value="1" checked>正常</label>
                        <label><input type="radio" name="status" value="0">禁用</label>
                    @elseif($user->status == 0)
                        <label><input type="radio" name="status" value="1">正常</label>
                        <label><input type="radio" name="status" value="0" checked>禁用</label>
                    @endif
                </div>
            </div>
        </div>
        <!-- /.box-body -->

        <div class="box-footer">
            <button type="button" class="btn btn-primary" data-url="{{ url('admin/users/'.$user->id) }}" data-type="PATCH" onclick="subAction(this)">提 交</button>
            <button type="button" class="btn btn-default" data-url="{{ url('admin/users', $user->id) }}" onclick="jumpfun(this)">返 回</button>
        </div>
    </form>
</div>